home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
PKEY11_1.ARJ
/
GCL.LSP
< prev
next >
Wrap
Text File
|
1992-03-14
|
654b
|
21 lines
;Global copy layers (pick the objects and specify destination layer)
;
; ********Patrick J. McKee, author********
; ****Copyright 1992, Power Key tm****
;
(defun C:GCL ()
(setq oer *error* *error* err2)
(setq ss (ssget))
(SETQ UL1(GETSTRING "\nLayer to copy entities to : "))
(setq counter 0)
(prompt "CHANGING layers...")
(while
(setq e (ssname ss counter))
(setq l (cdr (assoc 8 (entget e))))
(setq S (ssget "X" (list (cons 8 l))))
(progn
(command "CHANGE" s "" "P" "LA" UL1 ""))
(setq counter (+ counter 1))
(princ l)(princ ", ")
(princ " to Layer ")(princ ul1)
(princ)))